/*
 * Copyright (c) 2009. Silenus Consultoria, S.L.
 */

/**
 * Module definition.
 */
MODULES['9_zalfresco'] = {

	menu: null,

	init: function() {

		// Initialize common menu
		this.menu = new Ext.menu.Menu({
			items: [{
				text: MSG['alfresco.title'],
				iconCls: 'icon-alfresco',
				handler: this.gotoAlfresco,
				scope: this
			}]
		});

		// Add menu to toolbar
		Main.app.mainToolbar.add({
			text: MSG['alfresco.title'],
			iconCls: 'icon-alfresco',
			menu: this.menu
		});
	},

	gotoAlfresco: function() {
		// window.location = CONTEXT_PATH + "/secure/alfresco.do";
		window.open(CONTEXT_PATH + "/secure/alfresco.do", "_blank");
	}
};